package com.xianxing.service.user.service;

import com.xianxing.common.pojo.AuthToken;
import com.xianxing.service.user.pojo.User;

public interface UserService {

    /**
     * 用户授权
     * @param username
     * @param password
     * @param client
     * @param clientSecret
     * @return
     */
    AuthToken login(String username, String password, String client, String clientSecret);

    /**
     * 根据用户名获取用户
     * @param username
     * @return
     */
    User findUserByUsername(String username);
}
